package ie.lawlor.amvc.event;

/**
 * @author blawlor
 *
 */
public class ExceptionPayload {

	public Throwable throwable;
	public String message;
    public ExceptionPayload(Throwable t, String message) {
    	if (t == null){
    		throw new IllegalArgumentException("Cannot create an ExceptionPayload with a null throwable");
    		}
    	this.throwable = t;
    	this.message = message;
    }

}
